package org.blogwu.learn.temp.proxy.jdkProxy;

import org.blogwu.learn.temp.proxy.jdkProxy.service.OrderService;
import org.blogwu.learn.temp.proxy.jdkProxy.service.OrderServiceImpl;

public class Main {

    public static void main(String[] args) {
        System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
        OrderService orderService = new JdkProxy(new OrderServiceImpl()).getProxy();
        orderService.placeOrder("Nossss123123");
    }
}
